<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('view-counts', 'ViewCountController');//访问统计
    $router->resource('mobile-users', 'UserController');//用户
    $router->resource('domains', 'Configs\DomainController');//域名
    $router->resource('cdn-domains', 'Configs\CdnDomainController');//CDN域名
    $router->resource('video-cdns', 'Configs\VideoCdnController');//视频CDN域名
    $router->resource('video-categories', 'Videos\VideoCategoryController');//视频分类
    $router->resource('videos', 'Videos\VideoController');//视频
    $router->resource('tags', 'Videos\TagController');//视频标签
    $router->get('/videoconf/1/edit','Videos\VideoController@videoConfForm'); //视频金额设置
    $router->post('/videoconf/1','Videos\VideoController@saveVideoConf');//保存视频金额设置
    $router->resource('short-url-api', 'Configs\ShortUrlApiController');//短网址网关
    $router->resource('short-urls', 'Agents\ShortUrlController');//代理短网址
    $router->resource('notices', 'NoticeController');//通知
    $router->resource('error-paths', 'ErrorPathController');//异常图片视频
    $router->resource('complains', 'ComplainController');//投诉
    $router->resource('bad-openids', 'BadOpenidController');//fengjin openid

    $router->resource('orders', 'OrderController');//订单
    $router->resource('deduct-orders', 'OrderDeductedController');//扣量订单
    $router->resource('pay-methods', 'Configs\PayMethodController');//支付通道
    $router->resource('pay-configs', 'Configs\PayConfigController');//支付通道
    $router->resource('system-deduct', 'Configs\deductConfigController');//系统扣量
    $router->resource('buy-methods', 'Configs\BuyMethodController');//打赏方式

    //代理后台权限
    $router->resource('agents', 'Agents\AgentController');
    $router->resource('agent-login-logs', 'Agents\AgentLoginLogController');
    $router->resource('agent-menu', 'Agents\AgentMenuController');
    $router->resource('agent-permissions', 'Agents\PermissionController');
    $router->resource('agent-roles', 'Agents\RoleController');
    $router->resource('agent-prices', 'Agents\AgentPriceController');
    $router->resource('agent-accounts', 'Agents\AgentAccountController');
    $router->resource('withdraws', 'Agents\WithdrawController');
    $router->resource('agent-account-details', 'Agents\AgentAccountDetailController');
    $router->resource('server-managers', 'ServerManagerController');//服务器vps管理

    
    

});

